package it.bela.pgcdc.common.dao;

import it.bela.pgcdc.common.bean.BaseBean;

import java.util.List;

public interface BaseDao<T> {

	public abstract void persist(T transientInstance);
	public abstract void attachDirty(T instance);
	public abstract void attachClean(T instance);
	public abstract void delete(T persistentInstance);
	public abstract T merge(T detachedInstance);
	public abstract T findById(Class<? extends BaseBean> classe, Long id);
	public abstract List<T> findByExample(T instance);
	public abstract void save(T instance);

}
